package com.itheima.thread;

public class Demo02 {
    public static void main(String[] args) {
        MyRunnable my = new MyRunnable();
        Thread t = new Thread(my);
        t.start();
        for (int i = 0; i < 100; i++) {
            System.out.println("main线程执行到了"+i);
        }
    }
}

class MyRunnable implements Runnable{

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println("myRunnable执行到le"+i);
        }
    }
}
